#include "bsp_usart.h"
#include "usart.h"
#include "dbus.h"
#include "omni_wheel.h"


//void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef * huart, uint16_t Size)
//{

//	if(huart->Instance == USART3)
//	{
//		if (Size == DBUS_BUFFER_SIZE)
//		{
//			HAL_UARTEx_ReceiveToIdle_DMA(&huart3, dbus_buffer, DBUS_BUFFER_SIZE*2);
//			dbus_decode();
//		}
//		else
//		{	
//			HAL_UARTEx_ReceiveToIdle_DMA(&huart3, dbus_buffer, DBUS_BUFFER_SIZE*2);
//		}
//	}
//}

//void HAL_UART_ErrorCallback(UART_HandleTypeDef * huart)
//{
//	if(huart->Instance == USART3)
//	{
//		HAL_UARTEx_ReceiveToIdle_DMA(&huart3, dbus_buffer, DBUS_BUFFER_SIZE*2);
//	}
//}